require('./bootstrap');

import Vue from 'vue';
import Vant from 'vant';
import 'vant/lib/index.css'
import router from './routes'
Vue.use(Vant)

const files = require.context('./', true, /\.vue$/i)
files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))

const app = new Vue({
    el: '#app',
    router
});
